package cn.ljw.service.impl;

import cn.ljw.dto.TokenDto;
import cn.ljw.entity.User;
import cn.ljw.mapper.UserMapper;
import cn.ljw.param.LoginParam;
import cn.ljw.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * @author 一朝风月
 * @date 2024/3/27 19:57
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */
@Service
@RequiredArgsConstructor(onConstructor_ = {@Autowired, @Lazy})
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService, UserDetailsService {
    @Override
    public TokenDto login(LoginParam param) {
        return null;
    }

    @Override
    public User getCurrentUser() {
        return null;
    }

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        return null;
    }
}
